package com.toutiao.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.toutiao.dao.NewsCollectMapper;
import com.toutiao.dao.model.News;
import com.toutiao.dao.model.NewsCollect;
import com.toutiao.dao.model.NewsCollectExample;
import com.toutiao.daoEx.NewsCollectMapperEx;
import com.toutiao.daoEx.model.NewsCollectEx;
import com.toutiao.daoEx.model.NewsEx;

@Service
public class NewsCollectService {
	@Autowired
	private NewsCollectMapper newsCollectMapper;
	@Autowired
	private NewsCollectMapperEx newsCollectMapperEx;

	public int countByExample(NewsCollectExample example) {
		return this.newsCollectMapper.countByExample(example);
	}

	public NewsCollect selectByPrimaryKey(Integer id) {
		return this.newsCollectMapper.selectByPrimaryKey(id);
	}

	public List<NewsCollect> selectByExample(NewsCollectExample example) {
		return this.newsCollectMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.newsCollectMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(NewsCollect record) {
		return this.newsCollectMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(NewsCollect record) {
		return this.newsCollectMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(NewsCollectExample example) {
		return this.newsCollectMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(NewsCollect record, NewsCollectExample example) {
		return this.newsCollectMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(NewsCollect record, NewsCollectExample example) {
		return this.newsCollectMapper.updateByExample(record, example);
	}

	public int insert(NewsCollect record) {
		return this.newsCollectMapper.insert(record);
	}

	public int insertSelective(NewsCollect record) {
		return this.newsCollectMapper.insertSelective(record);
	}
	
	public List<NewsEx> selectAppList(Map<String, Object> map) {
		return this.newsCollectMapperEx.selectAppList(map);
	}
}
